package com.iris.live.services.report;

/**
 * 封装Excel中的行数据
 * Created by 林平 on 2016/12/12.
 */
public class Row {
    private String indicator;
    private Cell[] cells = null; //行值
    private boolean formular = false;
    private boolean isHidden = false;//是否隐藏

    public Row() {
    }

    public Row(String indicator) {
        this.indicator = indicator;
    }

    public Row(Cell[] cells) {
        this.cells = cells;
    }

    public Row(String indicator, Cell[] cells) {
        this.indicator = indicator;
        this.cells = cells;
    }

    public Row(String indicator, boolean formular) {
        this.indicator = indicator;
        this.formular = formular;
    }

    public boolean isHidden() {
        return isHidden;
    }

    public void setHidden(boolean hidden) {
        isHidden = hidden;
    }

    public Row(boolean formular) {
        this.indicator = indicator;
        this.formular = formular;
    }

    public Cell[] getCells() {
        return cells;
    }

    public boolean ignored() {
        return cells == null;
    }

    public boolean isFormular() {
        return formular;
    }

    public String getIndicator() {
        return indicator;
    }

    public void setIndicator(String indicator) {
        this.indicator = indicator;
    }
}
